package com.his.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 医院账单流水表
 * </p>
 *
 * @author Demoon Liu
 * @since 2022-02-20
 */
@Schema(description = "账单实体类")
@TableName("bills_record")
public class BillsRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "账单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "类型：0 挂号 1检查 2检验 3处置 4草药 5 成药")
    private Integer type;

    @Schema(description = "账单号")
    private String billno;

    @Schema(description = "发票创建时间")
    private LocalDateTime createtime;

    @Schema(description = "类型：0 已打印发票 1未打印发票")
    private Integer status;

    @Schema(description = "挂号id")
    private Long registrationid;

    @Schema(description = "缴费状态")
    private String recordlist;

    @Schema(description = "总金额")
    private BigDecimal amount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getBillno() {
        return billno;
    }

    public void setBillno(String billno) {
        this.billno = billno;
    }
    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Long getRegistrationid() {
        return registrationid;
    }

    public void setRegistrationid(Long registrationid) {
        this.registrationid = registrationid;
    }
    public String getRecordlist() {
        return recordlist;
    }

    public void setRecordlist(String recordlist) {
        this.recordlist = recordlist;
    }
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "BillsRecord{" +
                "id=" + id +
                ", type=" + type +
                ", billno=" + billno +
                ", createtime=" + createtime +
                ", status=" + status +
                ", registrationid=" + registrationid +
                ", recordlist=" + recordlist +
                ", amount=" + amount +
                "}";
    }
}
